package Limit.Skill;

import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.serverpackets.S_NPCTalkReturn;

public class E_LimitInfo {
	public E_LimitInfo(String s, L1PcInstance pc) {
		String htmlid = null;
		String[] htmldata = null;
		
		if (s.equalsIgnoreCase("LimitSkill")) {
			int limitskill = pc.getLimitSkill();
			int lv = pc.getLimitSkillLv();
			String level = "" + lv;
			String per = "" + pc.getLimitSkillPer();
			htmldata = new String[pc.getLimitSkillLv()+2];
			htmldata[0] = level;
			htmldata[1] = per;
			for (int i = 2; i < lv; i++){
				htmldata[i] = "1034";
			}
			switch (limitskill)
			{
			case 1:
				htmlid = "LMJewelry";
				break;
			}
		}
		pc.sendPackets(new S_NPCTalkReturn(pc.getId(), htmlid, htmldata));
	}
}
